import request from '@/utils/request'

// 查询云HIS-支付汇总列表
export function listPayment(query) {
    return request({
        url: '/dataCenter/payment/list',
        method: 'get',
        params: query
    })
}

// 查询云HIS-支付汇总详细
export function getPayment(patientId) {
    return request({
        url: '/dataCenter/payment/' + patientId,
        method: 'get'
    })
}

// 新增云HIS-支付汇总
export function addPayment(data) {
    return request({
        url: '/dataCenter/payment',
        method: 'post',
        data: data
    })
}

// 修改云HIS-支付汇总
export function updatePayment(data) {
    return request({
        url: '/dataCenter/payment',
        method: 'put',
        data: data
    })
}

// 删除云HIS-支付汇总
export function delPayment(patientId) {
    return request({
        url: '/dataCenter/payment/' + patientId,
        method: 'delete'
    })
}
